package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.ItemCategory;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 分类信息
 *
 * @Date:Created in 2018/6/30 16:43
 * @Author:
 * @Modified By: zjn 2018/6/30 16:43
 */
public interface ItemCategoryMapper extends MasterMapper {
    /**
    * 根据主键查询
    * 
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ItemCategory
    * @Author By: zjn 2018/6/30  16:44
    */ 
    public ItemCategory find(int id);
    /**
    * 查询表hdw_item_category，查询结果按照编号排列
    * 
    * @Param: []
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ItemCategory>
    * @Author By: zjn 2018/6/30  16:44
    */ 
    public List<ItemCategory> findAll();
    /**
    * 查询，返回行数
    * 
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:44
    */ 
    public int findPageCount(ItemCategory search);
    /**
    * 分页查询
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ItemCategory>
    * @Author By: zjn 2018/6/30  16:44
    */
    public List<ItemCategory> findPageResult(ItemCategory search);
    /**
    * 插入
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:44
    */
    public int insert(ItemCategory entity);
    /**
    * 根据主键更新
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:44
    */
    public int update(ItemCategory entity);
    /**
    * 根据主键删除
    *
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:44
    */
    public int delete(int id);
}
